import Vue from 'vue'
import VueRouter from 'vue-router';
import App from './App.vue'
import {routes} from './routes';
import iView from 'iview';
import 'iview/dist/styles/iview.css';
import axios from "axios"
import VueAxios from "vue-axios";
//import VueQuillEditor from 'vue-quill-editor'
import {store} from './store'

axios.defaults.headers.post['Content-Type'] = 'application/x-form-urlencoded';

//Vue.use(VueQuillEditor)
Vue.use(VueRouter);
Vue.use(VueAxios,axios)
Vue.use(iView)

//if (process.browser) {
//const VueQuillEditor = require('vue-quill-editor/ssr')
//Vue.use(VueQuillEditor)
//}

const router = new VueRouter({
	routes:routes // 可以直接写成routes
})

new Vue({
  el: '#app',
  store,//引用组件
  router, // router:router
  render: h => h(App)
})
